from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from computerapp import views

urlpatterns = [
    url(r'^product_list/$', views.ProductListView.as_view(), name='product_list'),
    url(r'^product_list_by_category/$', views.ProductListByCategoryView.as_view(), name='product_list_by_category'),
    url(r'^product_list_by_category_manufactory/$', views.ProductListByCategoryManufactureView.as_view(), name='product_list_by_category_manufactory'),
    url(r'^product_retrieve/(?P<pk>[0-9]+)/$', views.ProductRetrieveView.as_view(), name='product_retrieve'),
    url(r'^user_info/$', views.UserInfoView.as_view(), name='user_info'),
]


urlpatterns = format_suffix_patterns(urlpatterns)